//
//  ZTTabBarButton.h
//  DianYing5
//
//  Created by d0 on 15/7/17.
//  Copyright (c) 2015年 uskr. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface ZTTabBarButton : UIButton

@property (nonatomic,strong)UILabel* label;

//@property (nonatomic,strong)UIImage* selectedImage;
//
//@property (nonatomic,strong)UIImage* unselectImage;
//
//@property (nonatomic,assign)UIEdgeInsets unselectImageEdgeInsets;

//!@brief 自定义BLOCK,设置按钮的点击事件
@property (nonatomic,copy)void (^action)(ZTTabBarButton*);

-(void)setAction:(void (^)(ZTTabBarButton *))action;

-(ZTTabBarButton*)initWithLabelRect:(CGRect)labelRect
                  withSelectedImage:(UIImage*)selectedImage
                  withUnselectImage:(UIImage*)unselectImage
                withImageEdgeInsets:(UIEdgeInsets)imageEdgeInsets
                         withAction:(void (^)(ZTTabBarButton * button))action;


@end
